package com.itheima.job;

import com.itheima.service.SetmealService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * company: www.abc.com
 * Author: 29746
 * Create Data: 2020/11/15
 */
@JobHandler(value = "job.test1")
@Component
public class Myjob extends IJobHandler {


    @Override
    public ReturnT<String> execute(String s) throws Exception {
        System.out.println("test------");
        return SUCCESS;
    }

}